package com.rgs.platform.myboot;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @author Ren Gaoshuai
 * @ClassName MyAutoConfig
 * @date 2022-02-23 20:27
 **/
@Configuration
public class MyAutoConfig {

    @Bean
    @Conditional(MyOnCondition.class)
    public RedisTemplate redisTemplate(){
        return new RedisTemplate<>();
    }
}
